← Back
Editing: index69.js
import{u as e,aM as t,a6 as s,p as a,bu as l,a3 as i,v as o,a7 as r,L as n,a8 as p,c as m}from"./utils-lib.js?v=1765440387";import{_ as c}from"./index93.js?v=1765440387";import{c as d,s as u,e as _,B as b,p as f,n as v,q as x,M as y,A as C,x as h,y as j,J as k}from"./base-lib.js?v=1765440387";import{a as g,d as B,g as w,u as T}from"./column.js?v=1765440387";import{b as J,g as L,s as S,c as P,d as R,f as D,h as E,i as O,u as A,a as H,j as I}from"./useController6.js?v=1765440387";import{S as q}from"./useStore3.js?v=1765440387";import{u as M}from"./index131.js?v=1765440387";import"./validator.js?v=1765440387";import"./index.vue_vue_type_style_index_0_scoped_b3c4124c_lang.js?v=1765440387";import{o as V,a as F,b as K,c as N,d as U,r as W,u as z}from"./useController11.js?v=1765440387";import"./__commonjsHelpers__.js?v=1765440387";import"./index94.js?v=1765440387";import"./site.js?v=1765440387";import"./index114.js?v=1765440387";const G={class:"flex items-center ml-[12px]"},Q=d({__name:"index",setup(d){const{mainHeight:Q,enterpriseRec:X}=e(),{getSiteList:Y}=q(),{activeType:Z,isRefreshList:$,searchWidth:ee}=u(q()),{BtOperation:te}=t({options:[{type:"button",label:"添加项目",active:!0,onClick:V},...X.value?[{type:"button",label:"漏洞扫描",onClick:F}]:[],{type:"dropdown",label:"Java环境管理",onClick:()=>K(),options:[{label:"JDK管理",onClick:()=>K("jdkSettings")},{label:"Tomcat管理",onClick:()=>K("newTomCat")}]},{type:"button",label:"项目组",onClick:N}]}),se=M({key:"type_id",name:"Java分类",options:()=>[{label:"全部分类",value:"all"}],event:E,ignore:["0"],field:"type_name"}),ae=p([{label:"启动项目",value:"start",event:z},{label:"停用项目",value:"stop",event:z},{label:"重启项目",value:"restart",event:z},A(),H({classList:I}),{label:"删除项目",value:"delete",event:z}]),{BtTable:le,BtPage:ie,BtRefresh:oe,BtSearch:re,BtColumn:ne,BtBatch:pe,BtTableCategory:me,refresh:ce}=s({request:e=>{const{type_id:t,...s}=e;return Y({data:JSON.stringify({...s,type_id:a(t)||"all"===t?"":t})})},columns:[g({type:"page",key:"id"}),J({type:Z.value,onClick:e=>{U(e)}}),{label:"项目PID",isCustom:!0,render:e=>e.pid?e.pid:"--"},L({type:Z.value,prop:"pid",onClick:(e,t)=>{if("setting"===t)return void U(e,"state");const s=null!==e.pid?"stop":"start";S(e,"restart"===t?t:s)}}),{label:"端口",isCustom:!0,render:e=>l(e.listen,"array",[]).length?e.listen.join(","):"--"},{label:"CPU / 内存",isCustom:!1,width:200,render:e=>(i(e.pid_info)?e.pid_info.cpu_percent.toFixed(2):"--")+"% / "+(i(e.pid_info)?o(e.pid_info.memory_used):"--")},B(),P(),w({table:"sites",width:200}),R({onClick:e=>{U(e,"ssl")}}),T([{isHide:e=>!e.server_config_error,onClick:W,title:"修复"},,{title:"设置",onClick:e=>{U(e)}},{title:"删除",onClick:e=>{O(e,Z.value)}}])],extension:[se,ae,r($)],empty:()=>_("span",null,[b("您的列表为空,您可以"),_("span",{class:"bt-link",onClick:V},[b("添加一个项目")])])});return f(()=>{v(()=>{n(()=>import("./index347.js?v=1765440387"),__vite__mapDeps([]),import.meta.url),n(()=>import("./index348.js?v=1765440387"),__vite__mapDeps([]),import.meta.url)})}),(e,t)=>{const s=m,a=c;return x(),y(a,null,{"header-left":C(()=>[_(h(te)),j("div",G,[_(s,{href:"https://www.bt.cn/bbs/thread-132714-1-1.html"},{default:C(()=>[...t[1]||(t[1]=[b("Java项目教程",-1)])]),_:1}),t[2]||(t[2]=j("i",{class:"svgtofont-el-link text-primary text-[1.6rem] ml-[4px]"},null,-1))]),j("div",{class:"flex items-center ml-1rem <xl:hidden",onClick:t[0]||(t[0]=(...e)=>h(D)&&h(D)(...e))},[...t[3]||(t[3]=[j("i",{class:"svgtofont-desired text-[1.6rem]"},null,-1),j("span",{class:"bt-link"},"需求反馈",-1)])])]),"header-right":C(()=>[_(h(me),{class:"!w-[140px] mr-[10px]"}),_(h(re),{class:k(["mr-[10px]","!w-[".concat(h(ee),"px]")]),placeholder:"请输入项目名称或备注"},null,8,["class"]),_(h(oe),{class:"mr-[10px]"}),_(h(ne))]),content:C(()=>[_(h(le))]),"footer-left":C(()=>[_(h(pe))]),"footer-right":C(()=>[_(h(ie))]),_:1})}}});export{Q as default}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = [] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) }
Save File
Cancel